<div id="title_right">
	<p id="title_right_left"></p>
	<div id="title_right_center">
		<p class="chu_title">DANH SÁCH NHÀ CUNG CẤP</p>
	</div>
	<p id="title_right_right"></p>
</div>

<?php

if($data)
{?>
<table class="table">
	<tr class="mau2">
		<td>STT</td>
		<td>Tên nhà cung cấp</td>
		
		<td><img src="public/images/b_edit.png" /> Sửa</td>
		<td><img src="public/images/b_drop.png" /> Xóa</td>
	</tr>
<?php
	$i=1;

	foreach ($data['list'] as $key => $value) {

		if($i%2==0){
			echo "<tr class='mau'>";
		}else
		{
			echo "<tr>";
		}
		?>
	<td><?php echo $i;?></td>
	<td><?php echo $value['TenNCC'];?></td>
	
	<td><a href="admin.php?mod=updatencc&ma=<?php echo $value['MaNCC']?>">
			<img src="public/images/b_edit.png" /> </a></td>
	<td><a href="admin.php?mod=delncc&ma=<?php echo $value['MaNCC']?>">
			<img src="public/images/b_drop.png" /> </a></td>
	</tr>
	<?php
	$i++;
	}
	?>
	<tr>
		<td colspan="8">
			<button onclick="window.location.href='admin.php?mod=addncc'">Thêm mới</button></td>
	</tr>
</table>
<?php }?>

